"use strict";

angular.module('app.jurisdiction', ['ui.router'])
.config(function ($stateProvider) {

    $stateProvider
        .state('app.jurisdiction', {
            abstract: true,
            data: {
                title: '权限管理'
            }
        })

            .state('app.jurisdiction.addAction', {
                url: '/addAction',
                views: {
                    "content@app": {
                        templateUrl: 'app/jurisdiction/views/addAction.html',
                        controller: 'AddActionCtrl'
                    }
                },
                resolve: {
                    scripts: function(lazyScript){
                        return lazyScript.register([
                            'smartadmin-plugin/legacy/jqgrid/js/minified/jquery.jqGrid.min.js',
                            'smartadmin-plugin/legacy/jqgrid/js/i18n/grid.locale-en.js'
                        ]);
                    }
                },
                data:{
                    title: '动作管理',
                    level: 'level_8'
                
                }
            }) 
         .state('app.jurisdiction.role', {
             url: '/role',
             views: {
                 "content@app": {
                    templateUrl: 'app/jurisdiction/views/role.html',
                    controller: 'RoleCtrl' 
                 }
             },
             resolve: {
                 scripts: function (lazyScript) {
                     return lazyScript.register([
                         'smartadmin-plugin/legacy/jqgrid/js/minified/jquery.jqGrid.min.js',
                         'smartadmin-plugin/legacy/jqgrid/js/i18n/grid.locale-en.js'
                     ]);
                 }
             },
             data: {
                 title: '角色管理',
                 level: 'level_8'

             }
         })
        .state('app.jurisdiction.action', {
            url: '/action',
            views: {
                "content@app": {
                    templateUrl: 'app/jurisdiction/views/jurisdiction.html',
                    controller: 'JurisdictionCtrl'
                   }
            },
            data:{
                title: '权限编辑',
                level: 'level_8'
               
            }
        })
        
       
});


